var result = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"", "MSG":"","DATA":"","RULE":"35"}');
var start = new Date(NEW_RETAIL_EFF_DATE);
var end = new Date(NEW_RETAIL_EXP_DATE);
var retailType = RETAIL_TYPE;
var deptNbr = DEPT_NBR;
if (betweenDay(start, end) < 14 && retailType == 'TR' && !isFresh(deptNbr)) {
    result.CODE = 1;
    result.ACTION = "APPROVAL_LEVEL";
    result.LEVEL = "AG";
    result.MSG = "TR变价需要保证至少14天的有效期，不满14天需GMM审批";  
} 
JSON.stringify(result);